package pattern.observer.pull;

/**
 * Created by boot on 8/30/15.
 */
public class WeatherObserver implements Observer {

    private String observerName;

    private String weatherContent;

    private String remindThing;

    public void update(Subject subject) {
        weatherContent = ((WeatherSubject) subject).getWeatherContent();
        System.out.format("%s:收到了 %s. TA回信说%s%n", observerName, weatherContent, remindThing);
    }

    public String getObserverName() {
        return observerName;
    }

    public void setObserverName(String observerName) {
        this.observerName = observerName;
    }

    public String getRemindThing() {
        return remindThing;
    }

    public void setRemindThing(String remindThing) {
        this.remindThing = remindThing;
    }

    public String getWeatherContent() {
        return weatherContent;
    }

    public void setWeatherContent(String weatherContent) {
        this.weatherContent = weatherContent;
    }
}
